import { ecs } from "db://oops-framework/libs/ecs/ECS";
import { Buff } from "../../battle/buff/Buff";

/** 角色战斗中数据 */
@ecs.register('RoleModelBattle')
export class RoleModelBattleComp extends ecs.Comp {
    /** 角色身上的BUFF效果 */
    buffs: Map<string, Buff> = new Map();

    reset() {
        this.buffs.forEach(b => {
            b.destroy();
        });
        this.buffs.clear();
    }
}